import "@/assets/css/global.css"
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import moment from 'moment'
import * as d3 from "d3";
import wx from 'weixin-js-sdk'

import {
  Button,
  NavBar,
  Col,
  Row,
  Toast,
  Swipe,
  SwipeItem,
  Lazyload,
  Icon,
  Panel,
  Form,
  Field,
  Cell,
  CellGroup,
  Calendar,
  Popup,
  Divider,
  Grid,
  GridItem,
  Empty,
  RadioGroup,
  Radio,
  Notify,
  List,
  Tab,
  Tabs,
  Picker,
  Area,
  ActionSheet,
  DatetimePicker,
  Collapse,
  CollapseItem,
  Checkbox,
  CheckboxGroup,
  Tabbar,
  TabbarItem,
  Tag,
  Badge,
  Step,
  Steps,
  Search,
} from 'vant';

import { Skeleton } from 'vant';



import { Dialog } from 'vant';

import { Image as VanImage } from 'vant';



Vue.config.productionTip = false

Vue.use(Button);
Vue.use(NavBar);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Lazyload);
Vue.use(Col);
Vue.use(Row);
Vue.use(NavBar);
Vue.use(Icon);
Vue.use(Toast);
Vue.use(Panel);
Vue.use(Form);
Vue.use(Field);
Vue.use(Calendar);
Vue.use(Popup);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Divider);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(VanImage);
Vue.use(Empty);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Notify);
Vue.use(List);
Vue.use(Tabs);
Vue.use(Tab);
Vue.use(Picker);
Vue.use(Area);
Vue.use(ActionSheet);
Vue.use(DatetimePicker);
Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Tag);
Vue.use(Badge);
Vue.use(Step);
Vue.use(Steps);
Vue.use(Dialog);
Vue.use(Skeleton);
Vue.use(Search);

Vue.prototype.$moment = moment;
Vue.prototype.$d3 = d3;
Vue.prototype.$wx = wx;

window.addEventListener('popstate', function () {
  router.isBack = true
}, false)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
